package com.example.project.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;

import java.time.LocalDateTime;

@ApiModel("Progress 表")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Progress implements Serializable {
    private static final long serialVersionUID = -41800786896339970L;
    @ApiModelProperty("项目进度表id")
    private Long id;

    @ApiModelProperty("项目id")
    private Long projId;

    @TableField(exist = false)
    private Project project;

    @ApiModelProperty("进度描述")
    private String description;

    @ApiModelProperty("百分比")
    private Integer percentage;

    @ApiModelProperty("上传user")
    private Long createUser;

    @TableField(exist = false)
    private User user;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}

